import type {Placement , Options} from '@popperjs/core'
export interface TooltipProps {
    content?: string;
    placement?:Placement;
    trigger?: 'hover' | 'click';
    //是否手动打开
    visible?: boolean;
    popperOptions?: Partial<Options>
    //过度动画
    transition?: string;
    //打开的时间
    openDelay?: number;
    //关闭的时间
    closeDelay?: number;
}

export interface TooltipEmits {
    (e: 'Tooltip-change', visible: boolean): void;
    (e: 'click-outside', value:boolean):void
}

export interface TooltipInstance {
    hide: () => void;
    show: () => void;
}